package com.lds.register.center.server.business.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lds.register.center.server.business.app.entity.App;
import org.apache.ibatis.annotations.Select;

/**
 * Mapper 接口
 *
 * @author lidongsheng
 * @since 2025-06-26
 */
public interface AppMapper extends BaseMapper<App> {

    @Select("select id from app where cluster_id = #{clusterId} and name = #{name}")
    Long getAppIdByClusterIdAndName(Long clusterId, String name);
}

